import request from '@/utils/request'

// 查询基本信息列表
export function listCompete_enterprise(query) {
  return request({
    url: '/business/compete_enterprise/list',
    method: 'get',
    params: query
  })
}
export function optionList(query) {
  return request({
    url: '/business/compete_enterprise/optionList',
    method: 'get',
    params: query
  })
}

// 查询基本信息详细
export function getCompete_enterprise(enterpriseId) {
  return request({
    url: '/business/compete_enterprise/' + enterpriseId,
    method: 'get'
  })
}

// 查询基本信息详细
export function getAppCompete_enterprise(enterpriseId) {
  return request({
    url: '/business/compete_enterprise/appInfo/' + enterpriseId,
    method: 'get'
  })
}

// 新增基本信息
export function addCompete_enterprise(data) {
  return request({
    url: '/business/compete_enterprise',
    method: 'post',
    data: data
  })
}

// 修改基本信息
export function updateCompete_enterprise(data) {
  return request({
    url: '/business/compete_enterprise',
    method: 'put',
    data: data
  })
}

// 删除基本信息
export function delCompete_enterprise(enterpriseId) {
  return request({
    url: '/business/compete_enterprise/' + enterpriseId,
    method: 'delete'
  })
}
